package org.example;

import java.lang.reflect.Method;
import java.util.List;
import java.util.logging.Logger;

public class IntermediaryMethodInterceptor  implements  MethodInterceptor{
    private Logger logger=Logger.getLogger(IntermediaryMethodInterceptor.class);
    public  Object intercept(Object proxy, Method method,Object []args,MethodProxy methodProxy)throws Throwable{
        before();
        Object feedback=methodProxy.invokeSuper(proxy,args);
        after();
        return "看房记录：买家反馈"+feedback+"";
    }
}
